package cn.openea.perpartner.space.web.service;

import cn.openea.perpartner.meily.web.entity.vo.ArticleSearchVo;
import cn.openea.perpartner.meily.web.entity.vo.ArticleVo;
import cn.openea.perpartner.space.web.entity.JournalismArticle;
import com.baomidou.mybatisplus.extension.service.IService;
import lombok.NonNull;

import java.util.List;

/**
 * @author ysk
 */
public interface IJournalismArticleService extends IService<JournalismArticle> {

    List<JournalismArticle> selectList(ArticleSearchVo searchVo);

    boolean topArticle(@NonNull Long id);

    void updateArticle(@NonNull ArticleVo articleVo);

    void addArticle(@NonNull ArticleVo articleVo);

    boolean cancelTop(@NonNull Long id);

    JournalismArticle findByTitle(String title);

    boolean shelfArticle(Long id);

    boolean downArticle(Long id);

    List<JournalismArticle> getList(ArticleSearchVo searchVo);
}
